/**
 * Modified from WooCommerce
 *
 * @see https://github.com/woocommerce/woocommerce/blob/5f04212f8188e0f7b09f6375d1a6c610fac8a631/plugins/woocommerce/client/legacy/css/menu.scss#L1
 */

#wp-graphql-update {

	.updating-message {
		.wp-graphql-update-notice {
			display: none;
		}
	}

	.hidden {
		display: none;
	}

	.wp-graphql-update-notice {
		font-weight: normal;
		background: #fff8e5 !important;
		border-left: 4px solid #ffb900;
		border-top: 1px solid #ffb900;
		padding: 9px 0 9px 12px !important;
		margin: 0 -12px 0 -16px !important;
	}

	p:before {
		content: unset;
	}

	.warning:before{
		// https://developer.wordpress.org/resource/dashicons/#warning
		content: "\f534"
	}

	table {
		margin: 0.75em 0 0;

		tr {
			background: transparent none;
			border: 0;
		}

		th,
		td {
			background: transparent none !important;
			margin: 0;
			padding: 0.75em 20px 0;
			border: 0 !important;
			font-size: 1em;
			box-shadow: none;
		}

		th {
			font-weight: bold;
		}
	}
}

#wp-graphql-update-modal {
	display:none;
}

.wp-graphql-update-modal__container {
	border-radius: 4px;
	padding: 0;

	#TB_closeAjaxWindow {
		display: none;
	}

	#TB_title {
		display: none;
	}

	#TB_ajaxContent {
		height: 100% !important;
		padding: 0;
		margin: 0;
		width: 100% !important;

		p {
			margin: 0 0 1em;
		}

		.message {
			padding: 0 2em;
		}
	}
}

.wp-graphql-update-modal__content {
	h1 {
		padding: 0.75em 1em;
		margin: 0 0 0.5em;
		line-height: 1.5em;
		font-size: 1.6em;
		border-bottom: 1px solid #eee;
		background: #e9e9e9;
		border-top-left-radius: 4px;
		border-top-right-radius: 4px;
	}

	.wp-graphql-update-notice {
		padding: 0 2em;

	}

	.plugin-details-table-container {
		max-height: 40vh;
		overflow-y: auto;
	}

	table {
		margin: 0 0 1.25em;
	}

	th {
		font-weight: bold;
		margin-top: 0;
		}

	th,
	td {
		background: transparent none;
		margin: 0;
		padding: 0.75em 1.25em 0;
		border: 0;
		font-size: 1em;
		box-shadow: none;
	}

	.actions {
		border-top: 1px solid #eee;
		margin: 0;
		padding: 1em 0 2em 0;
		overflow: hidden;

		a.button-primary {
			float: right;
		}
	}
}
